<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=paIUXAsVq0Nsyj1Qn04GxUPfcxZNG9V9"></script>
    <title>路线</title>
    <style type="text/css">
		body, html{
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
            font-family:"微软雅黑";
        }
		#l-map{
            height:600px;
            width:100%;
        }
		#r-result,#r-result table{
            width:100%;
        }
	</style>
</head>
<body>
    <input type="text" id="sd" value="" style="border: none">
        <script>
                var url=decodeURI(window.location .href);
                var aa=url.indexOf('=');
                if (aa>-1){
                url=url.substring(aa+1);

                    document.getElementById("sd").value=url;
                }
        </script>
	<div id="l-map"></div>
	<div id="r-result"></div>
</body>
</html>
<script type="text/javascript">
	// 百度地图API功能
	var map = new BMapGL.Map("l-map");
	map.centerAndZoom(new BMapGL.Point(111.795,40.497), 11);
	var walking = new BMapGL.WalkingRoute(map, {renderOptions: {map: map, panel: "r-result", autoViewport: true}});


	{#这是步行导航#}
    walking.search("内蒙古师范大学盛乐校区", url);
	{#driving.search(start, end);#}
</script>

